import request from '@/utils/request'

// 查询军检记录列表父级
export function listTArmyExamine(query) {
  return request({
    url: '/TArmyExamine/TArmyExamine/inspectionfilelist',
    method: 'get',
    params: query
  })
}

// 查询军检记录列表子级
export function getTArmyExamineChild(id) {
  return request({
    url: '/TArmyExamine/TArmyExamine/infilechildlist/' + id,
    method: 'get'
  })
}

// 查询军检记录详细
export function listTArmyExamineChild(query) {
  return request({
    url: '/TArmyExamine/TArmyExamine/infilechildlist/' + query.id,
    method: 'get',
    params: query
  })
}

// 核验军检记录
export function submitTArmyExamine(data) {
  return request({
    url: '/TArmyExamine/TArmyExamine/verifications',
    method: 'post',
    data
  })
}

// 删除军检记录
export function delTArmyExamine(id) {
  return request({
    url: '/TArmyExamine/TArmyExamine/' + id,
    method: 'delete'
  })
}

export function submitTArmyExamineUnqualified(data) {
  return request({
    url: '/TArmyExamineBelow/TArmyExamineBelow',
    method: 'post',
    data
  })
}

// 预览资料
export function previewArmy(id) {
  return request({
    url: '/TArmyExamine/TArmyExamine/previewArmy/'+id,
    method: 'get',
  })
}
